package book;

public class BookList {
    private Book []books=new Book[10];
    private int usedsize;

    public  BookList(){
        books[0]=new Book("斗破苍穹","天蚕土豆",15,"玄幻");
        books[1]=new Book("凡人修仙传","忘语",30,"仙侠");
        books[2]=new Book("天龙八部","金庸",35,"武侠");
        usedsize=3;
    }

    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }

    public Book getBook(int i) {
        return books[i];
    }

    public void setBook(int i,Book book) {
        this.books[i]=book;
    }
}
